// 因为index样式中也要用到common中的样式 所以将common.less文件导入到index.less文件中 
@import "common"; // common 可以加后缀名 也可以不加 (common.less)

// @import 导入的意思 可以把一个样式文件导入到另外一个样式文件里面
// link 是把一个 样式文件引入到 html页面里面
body{
    height: 3000px;
}
// head部分
.head {
    position: fixed;
    width: 15rem;
    height: 88rem / 50;
    background-color: rgba(255, 219, 71);
    display: flex;
    .classify{
        width: 36rem / 50;
        height: 60rem / 50;
        background:url(../upload/classify.png) no-repeat ;
        background-size: 100%;
        margin: 15rem / 50 35rem / 50 8rem / 50 25rem / 50;
    }
    .search{
        flex: 1;
        form{
            overflow: hidden;
            display: flex;
            margin: 15rem / 50  0;
            width: 100%;
            height: 65rem / 50;
            border-radius: 65rem / 50 / 2;
            background-color: #fff;
            align-items: center;

            // text-indent: 1rem;
            i{
                margin-left: 20rem / 50;
                width: 36rem / 50;
                height: 36rem / 50;
                background:url(../upload/search.png) no-repeat center;
                background-size: 100%;
            }
            input{
                flex: 1;
                margin-left:15rem / 50 ;
                height: 100%;
                font-size: 65rem / 50 / 2;
            }
        }
    }
    .login img{
        margin: 15rem / 50 30rem / 50 8rem / 50 40rem / 50;
        width: 36rem / 50;
        height: 60rem / 50;
    }
}
.head-fill{
    height: 88rem / 50;
}
// holiday部分
.holiday{
    margin-top: 20rem / 50;
        width: 15rem;
        display: flex;
        // margin: 5px 20px 0;
            a{
                flex: 50%;
                img{
                    width: 100%;
                }
            }
    }
// nav-items部分
.nav-items ul{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    background-color: rgba(245, 245, 245);
     li{
        flex: 20%;
        a{
            display: flex;
            flex-direction: column;
            width: 150rem / 50;
            height: 142rem / 50;
            justify-content: center;
            align-items: center;
            font-size: .44rem;
            img{
                width: 84rem / 50;
                height: 84rem / 50;
                margin-bottom: 0.1rem;
            }
        }
    }
}
// ad部分
.nav-ad{
    margin-bottom: 20rem / 50;
    display: flex;
    div{
        img{
            width: 100%;
        }
    }
    div:nth-child(1){
        flex: 50%;
    }
    div:nth-child(2){
        margin: 0 3px;
        flex: 25%;
    }
    div:nth-child(3){
        flex: 25%;
    }
}
// active部分
.nav-act-head,.nav-act-content{
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 702rem / 50;
    height: 258rem / 50;
    background-color: #fff;
    border-radius: 8rem / 50 8rem / 50 0 0 ;
    .nav-lp,.sn-ms,.nav-bt,.nav-pg{
        // width: 350rem / 50;
        // height: 258rem / 50;
        display: flex;
        flex-direction: column;
        flex:1;
        height: 100%;
        margin-right: 1rem / 50;
        border-bottom: 1rem / 50 solid #ccc;
        .title{
            width: 112rem / 50;
            height: 40rem / 50;
            font-size: 28rem / 50;
            color: #333333;
            font-weight: 600;
            margin: 18rem / 50 8rem / 50 0 24rem / 50;
        }
        .desc{
            width: 300rem / 50;
            height: 30rem / 50;
            font-size: 24rem / 50;
            margin: 4rem / 50 0 0 24rem / 50;
            color:#999999;
        }
        ul{
            margin: 0.1rem 0 0 0;
            display: flex;
            // padding-left:0.56rem ;
                li{
                    flex: 1;
                    display: flex;
                    justify-content: center;
                    a{
                        img{
                            width: 120rem / 50;
                            height: 120rem / 50;
                        }
                        p{
                            height: 0.56rem;
                            color:#FF5500;
                            text-align: center;
                            line-height: 0.56rem;
                            font-size: 22rem / 50;
                            .price{
                                font-size: 26rem / 50;
                            }
                        }
                    }
                }
            }
    }
    .sn-ms,.nav-bt,.nav-pg{
        // width: 350rem / 50;
        // height: 258rem / 50;
        flex: 1;
        border-left: 1px solid #ccc;
        ul{
            li{
                a{
                    p{
                        font-size: 20rem / 50;
                        color:#333;
                        border-radius: 20rem / 50 / 2 20rem / 50 / 2 0 0;
                        border: 1px solid #ccc;
                    }
                }
            }
        }
    }
    .nav-bt{
        border-left: 0;
    }
}
// 百亿补贴 苏宁拼购
.nav-act-content{
    border-radius: 0;
    .nav-pg{
            border-left: 1px solid #ccc;
    }
}
// 推荐部分
.recom{
    display: flex;
    margin: 0 auto;
    width: 702rem / 50;
    height: 172rem / 50;
    background-color: #fff;
    border-radius: 0 0 8rem / 50 8rem / 50;
    .lefttitle{
        padding: 47rem / 50 18rem / 50 0;
        .col1{
            font-size: 32rem / 50;
            color: #444;
            font-weight:bold ;
        }
        .col2{
            font-size:24rem / 50 ;
            color: #999;
        }
    }
    a{
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        img{
            width: 100rem / 50;
            height: 100rem / 50;
        }
        p{
            font-size: 22rem / 50;
            color: #333;
        }
    }
}
// 推荐榜单部分
.recom-list{
    width: 100%;
    // 推荐榜单标题部分
    .recom-list-title{
        img{
            width: 100%;
        }
    }
    // 推荐榜单内容部分
    .recom-list-content{
        width: 702rem / 50;
        margin: 0 auto;
        .first-row{
            display: flex;
            margin-bottom: 15rem / 50;
            li{
                overflow: hidden;
                flex: 1;
                border-radius: 8rem / 50;
                &:nth-child(2){
                    margin: 0 10rem / 50;
                }
                a{
                    img{
                        width: 100%;
                    }
                }
            }
        }
        .second-row{
            display: flex;
            background-color: #fff;
            flex-wrap: wrap;
            border-radius: 8rem / 50;
            >:nth-child(2n){
                border-left: 1px solid #ccc;
            }
            >:nth-child(n){
                border-bottom: 1px solid #ccc;
            }
            >:nth-child(n+3){
                border-bottom:0;
            }
            .second-row-items{
                width: 350rem / 50;
                height: 240rem / 50;
                .first-text{
                    display: flex;
                    height: 32rem / 50;
                    margin: 5rem / 50 0 0 15rem / 50;
                    span:nth-child(1){
                        font-size: 26rem / 50;
                        color: #333;
                        font-weight: bold;
                    }
                    span:nth-child(2){
                        font-size: 22rem / 50;
                        color: #AB813A;
                        background-color: #F9F5EE;
                        margin: 0 0 0 12rem / 50;
                        padding: 0 12rem / 50;
                        border-radius:22rem / 2 / 50;
                    }
                }
                p{
                    font-size:24rem / 50 ;
                    color: #999;
                    margin: 6rem / 50 0 0 15rem / 50;
                }
                .sc-icons{
                    display: flex;
                    justify-content: space-around;
                    img{
                        width: 140rem / 50;
                        height: 140rem / 50;
                    }
                }
            }
        }
    }
}

// foot部分
.foot{
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: 100rem / 50;
    background-color: #fff;
    ul{
        height: 100%;
        display: flex;
        li{
            height: 100%;
            flex: 20%;
            a{
                display: flex;
                width: 100%;
                height: 100%;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                font-size: 0.44rem;
                img{
                    width: 0.96rem;
                    height: 0.96rem;
                }
                .guess{
                    color: black;
                    font-weight: 600;
                }
            }
        }
    }
}